package com.cskaoyan.bean.vo.admin_order_list;

import com.cskaoyan.bean.po.MarketOrder;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Trellis
 * @since 2022/09/13 11:00
 */
@Data
public class AdminOrderListVoNew {

    /**
     * total : 420
     * pages : 21
     * limit : 20
     * page : 1
     * list : [{"consignee":"单纪游","address":"北京市市辖区西城区 1","comments":0,"addTime":"2022-09-13 10:06:19","orderSn":"20220913539376","actualPrice":95,"shipTime":"2022-09-13 10:28:38","mobile":"12345678902","orderStatus":301,"updateTime":"2022-09-13 10:28:38","message":"","shipChannel":"ZTO","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":45,"couponPrice":0,"orderPrice":95,"id":530,"freightPrice":50,"integralPrice":0,"shipSn":"15342erwtewr"},{"consignee":"单纪游","address":"北京市市辖区西城区 1","comments":0,"addTime":"2022-09-13 10:06:01","orderSn":"20220913226357","actualPrice":9998,"mobile":"12345678902","orderStatus":201,"updateTime":"2022-09-13 10:06:01","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":10098,"couponPrice":100,"orderPrice":9998,"id":529,"freightPrice":0,"integralPrice":0},{"consignee":"单纪游","address":"北京市市辖区西城区 1","comments":0,"addTime":"2022-09-13 10:04:48","orderSn":"20220913917686","actualPrice":89,"mobile":"12345678902","orderStatus":201,"updateTime":"2022-09-13 10:04:48","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":39,"couponPrice":0,"orderPrice":89,"id":528,"freightPrice":50,"integralPrice":0},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-13 09:58:45","orderSn":"20220913400060","actualPrice":1050,"shipTime":"2022-09-13 09:59:07","mobile":"13007777776","orderStatus":401,"confirmTime":"2022-09-13 09:59:16","updateTime":"2022-09-13 10:29:26","message":"","shipChannel":"ZTO","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":1,"goodsPrice":1000,"couponPrice":0,"orderPrice":1050,"id":527,"freightPrice":50,"integralPrice":0,"shipSn":"132414"},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-13 09:54:00","orderSn":"20220913499797","actualPrice":951,"shipTime":"2022-09-13 09:54:36","mobile":"13007777776","orderStatus":401,"confirmTime":"2022-09-13 09:55:02","updateTime":"2022-09-13 09:55:43","message":"","shipChannel":"ZTO","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":1000,"couponPrice":99,"orderPrice":951,"id":526,"freightPrice":50,"integralPrice":0,"shipSn":"12345"},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-13 09:49:48","orderSn":"20220913496529","actualPrice":1048,"shipTime":"2022-09-13 09:50:28","mobile":"13007777776","orderStatus":401,"confirmTime":"2022-09-13 09:50:43","updateTime":"2022-09-13 09:51:18","message":"","shipChannel":"ZTO","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":1000,"couponPrice":2,"orderPrice":1048,"id":525,"freightPrice":50,"integralPrice":0,"shipSn":"qeqwe"},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":1,"addTime":"2022-09-13 09:31:24","orderSn":"20220913036633","actualPrice":147,"shipTime":"2022-09-13 10:02:42","mobile":"13007777776","orderStatus":401,"confirmTime":"2022-09-13 10:06:26","updateTime":"2022-09-13 10:06:26","message":"","shipChannel":"YTO","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":99,"couponPrice":2,"orderPrice":147,"id":524,"freightPrice":50,"integralPrice":0,"shipSn":"123"},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-13 09:31:21","orderSn":"20220913048545","actualPrice":147,"shipTime":"2022-09-13 10:03:14","mobile":"13007777776","orderStatus":301,"updateTime":"2022-09-13 10:03:14","message":"","shipChannel":"YZPY","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":99,"couponPrice":2,"orderPrice":147,"id":523,"freightPrice":50,"integralPrice":0,"shipSn":"45"},{"consignee":"wangdao","address":"湖北省武汉市洪山区 软件新城","comments":0,"addTime":"2022-09-13 09:25:36","orderSn":"20220913544042","actualPrice":4747,"mobile":"17519414048","orderStatus":201,"updateTime":"2022-09-13 09:25:36","message":"","userId":8,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":4697,"couponPrice":0,"orderPrice":4747,"id":522,"freightPrice":50,"integralPrice":0},{"consignee":"wangdao","address":"湖北省武汉市洪山区 软件新城","comments":0,"addTime":"2022-09-13 09:21:16","orderSn":"20220913528024","actualPrice":4497,"mobile":"17519414048","orderStatus":201,"updateTime":"2022-09-13 09:21:17","message":"","userId":8,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":4447,"couponPrice":0,"orderPrice":4497,"id":521,"freightPrice":50,"integralPrice":0},{"consignee":"wangdao","address":"湖北省武汉市洪山区 软件新城","comments":0,"addTime":"2022-09-13 09:19:28","orderSn":"20220913678027","actualPrice":3076,"mobile":"17519414048","orderStatus":201,"updateTime":"2022-09-13 09:19:29","message":"","userId":8,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":3026,"couponPrice":0,"orderPrice":3076,"id":520,"freightPrice":50,"integralPrice":0},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-13 01:08:59","orderSn":"20220913431753","actualPrice":2948,"mobile":"13007777776","orderStatus":201,"updateTime":"2022-09-13 01:08:59","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":2997,"couponPrice":99,"orderPrice":2948,"id":519,"freightPrice":50,"integralPrice":0},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-13 01:06:21","orderSn":"20220913225149","actualPrice":2948,"mobile":"13007777776","orderStatus":201,"updateTime":"2022-09-13 01:06:21","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":2997,"couponPrice":99,"orderPrice":2948,"id":518,"freightPrice":50,"integralPrice":0},{"consignee":"wangdao","address":"湖北省武汉市洪山区 软件新城","comments":0,"addTime":"2022-09-12 23:22:12","orderSn":"20220912929189","actualPrice":7996,"mobile":"17519414048","orderStatus":201,"updateTime":"2022-09-12 23:22:12","message":"","userId":8,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":7996,"couponPrice":0,"orderPrice":7996,"id":517,"freightPrice":0,"integralPrice":0},{"consignee":"lll","address":"北京市市辖区东城区 c13","comments":0,"addTime":"2022-09-12 23:20:28","orderSn":"20220912054333","actualPrice":400,"mobile":"13554789541","orderStatus":201,"updateTime":"2022-09-12 23:20:28","message":"","userId":14,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":400,"couponPrice":0,"orderPrice":400,"id":516,"freightPrice":0,"integralPrice":0},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-12 23:04:19","orderSn":"20220912887156","actualPrice":299,"shipTime":"2022-09-12 23:15:49","mobile":"13007777776","orderStatus":301,"updateTime":"2022-09-12 23:15:49","message":"","shipChannel":"YD","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":398,"couponPrice":99,"orderPrice":299,"id":515,"freightPrice":0,"integralPrice":0,"shipSn":"sadas"},{"consignee":"zzz天改","address":"北京市市辖区东城区 12345","comments":0,"addTime":"2022-09-12 23:02:54","orderSn":"20220912050528","actualPrice":998,"mobile":"13007777776","orderStatus":201,"updateTime":"2022-09-12 23:02:54","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":999,"couponPrice":1,"orderPrice":998,"id":514,"freightPrice":0,"integralPrice":0},{"consignee":"1234","address":"天津市市辖区和平区 1234","comments":0,"addTime":"2022-09-12 22:47:26","orderSn":"20220912140519","actualPrice":289,"mobile":"12345612345","orderStatus":201,"updateTime":"2022-09-12 22:47:26","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":299,"couponPrice":10,"orderPrice":289,"id":512,"freightPrice":0,"integralPrice":0},{"consignee":"1234","address":"天津市市辖区和平区 1234","comments":0,"addTime":"2022-09-12 22:47:26","orderSn":"20220912944652","actualPrice":289,"mobile":"12345612345","orderStatus":201,"updateTime":"2022-09-12 22:47:26","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":299,"couponPrice":10,"orderPrice":289,"id":513,"freightPrice":0,"integralPrice":0},{"consignee":"1234","address":"天津市市辖区和平区 1234","comments":0,"addTime":"2022-09-12 22:47:25","orderSn":"20220912141468","actualPrice":289,"mobile":"12345612345","orderStatus":201,"updateTime":"2022-09-12 22:47:25","message":"","userId":1,"grouponPrice":0,"deleted":false,"aftersaleStatus":0,"goodsPrice":299,"couponPrice":10,"orderPrice":289,"id":511,"freightPrice":0,"integralPrice":0}]
     */
    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<ListEntity> list = new ArrayList<>();

    public void copyList(MarketOrder marketOrder) {
        ListEntity listEntity = new ListEntity();
        BeanUtils.copyProperties(marketOrder,listEntity);
        list.add(listEntity);
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setList(List<ListEntity> list) {
        this.list = list;
    }

    public int getTotal() {
        return total;
    }

    public int getPages() {
        return pages;
    }

    public int getLimit() {
        return limit;
    }

    public int getPage() {
        return page;
    }

    public List<ListEntity> getList() {
        return list;
    }

    public class ListEntity {
        public Date getPayTime() {
            return payTime;
        }

        public void setPayTime(Date payTime) {
            this.payTime = payTime;
        }

        /**
         * consignee : 单纪游
         * address : 北京市市辖区西城区 1
         * comments : 0
         * addTime : 2022-09-13 10:06:19
         * orderSn : 20220913539376
         * actualPrice : 95.0
         * shipTime : 2022-09-13 10:28:38
         * mobile : 12345678902
         * orderStatus : 301
         * updateTime : 2022-09-13 10:28:38
         * message :
         * shipChannel : ZTO
         * userId : 1
         * grouponPrice : 0.0
         * deleted : false
         * aftersaleStatus : 0
         * goodsPrice : 45.0
         * couponPrice : 0.0
         * orderPrice : 95.0
         * id : 530
         * freightPrice : 50.0
         * integralPrice : 0.0
         * shipSn : 15342erwtewr
         */
        private String consignee;
        private String address;
        @JsonFormat(pattern = "yyyy-mm-dd HH:mm:ss",timezone = "GMT+8")
        private Date payTime;
        private int comments;
        private Date addTime;
        private String orderSn;
        private BigDecimal actualPrice;
        private Date shipTime;
        private String mobile;
        private Short orderStatus;
        private Date updateTime;
        private String message;
        private String shipChannel;
        private int userId;
        private BigDecimal grouponPrice;
        private boolean deleted;
        private Short aftersaleStatus;
        private BigDecimal goodsPrice;
        private BigDecimal couponPrice;
        private BigDecimal orderPrice;
        private int id;
        private BigDecimal freightPrice;
        private BigDecimal integralPrice;
        private String shipSn;

        public void setConsignee(String consignee) {
            this.consignee = consignee;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public void setComments(int comments) {
            this.comments = comments;
        }

        public void setAddTime(Date addTime) {
            this.addTime = addTime;
        }

        public void setOrderSn(String orderSn) {
            this.orderSn = orderSn;
        }

        public void setActualPrice(BigDecimal actualPrice) {
            this.actualPrice = actualPrice;
        }

        public void setShipTime(Date shipTime) {
            this.shipTime = shipTime;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public void setOrderStatus(Short orderStatus) {
            this.orderStatus = orderStatus;
        }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public void setShipChannel(String shipChannel) {
            this.shipChannel = shipChannel;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public void setGrouponPrice(BigDecimal grouponPrice) {
            this.grouponPrice = grouponPrice;
        }

        public void setDeleted(boolean deleted) {
            this.deleted = deleted;
        }

        public void setAftersaleStatus(Short aftersaleStatus) {
            this.aftersaleStatus = aftersaleStatus;
        }

        public void setGoodsPrice(BigDecimal goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public void setCouponPrice(BigDecimal couponPrice) {
            this.couponPrice = couponPrice;
        }

        public void setOrderPrice(BigDecimal orderPrice) {
            this.orderPrice = orderPrice;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setFreightPrice(BigDecimal freightPrice) {
            this.freightPrice = freightPrice;
        }

        public void setIntegralPrice(BigDecimal integralPrice) {
            this.integralPrice = integralPrice;
        }

        public void setShipSn(String shipSn) {
            this.shipSn = shipSn;
        }

        public String getConsignee() {
            return consignee;
        }

        public String getAddress() {
            return address;
        }

        public int getComments() {
            return comments;
        }

        public Date getAddTime() {
            return addTime;
        }

        public String getOrderSn() {
            return orderSn;
        }

        public BigDecimal getActualPrice() {
            return actualPrice;
        }

        public Date getShipTime() {
            return shipTime;
        }

        public String getMobile() {
            return mobile;
        }

        public int getOrderStatus() {
            return orderStatus;
        }

        public Date getUpdateTime() {
            return updateTime;
        }

        public String getMessage() {
            return message;
        }

        public String getShipChannel() {
            return shipChannel;
        }

        public int getUserId() {
            return userId;
        }

        public BigDecimal getGrouponPrice() {
            return grouponPrice;
        }

        public boolean isDeleted() {
            return deleted;
        }

        public int getAftersaleStatus() {
            return aftersaleStatus;
        }

        public BigDecimal getGoodsPrice() {
            return goodsPrice;
        }

        public BigDecimal getCouponPrice() {
            return couponPrice;
        }

        public BigDecimal getOrderPrice() {
            return orderPrice;
        }

        public int getId() {
            return id;
        }

        public BigDecimal getFreightPrice() {
            return freightPrice;
        }

        public BigDecimal getIntegralPrice() {
            return integralPrice;
        }

        public String getShipSn() {
            return shipSn;
        }
    }
}
